/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const taskRouter = {
  path: '/task',
  component: Layout,
  redirect: '/task/sale-order-approve',
  name: 'Task',
  alwaysShow: true,
  meta: {
    title: 'Task',
    icon: 'table'
  },
  children: [
    {
      path: '/task/sale-order-approve',
      component: () => import('@/views/task/sale-order-approve/index'),
      name: 'SaleOrderApprove',
      meta: { title: '销售订单审核' }
    },
    {
      path: '/task/sale-contract-approve',
      component: () => import('@/views/task/sale-contract-approve/index'),
      name: 'SaleContractApprove',
      meta: { title: '销售合同审核' }
    },
    {
      path: '/task/purchase-plan-approve',
      component: () => import('@/views/task/purchase-plan-approve/index'),
      name: 'PurchasePlanApprove',
      meta: { title: '采购计划审核' }
    },
    {
      path: '/task/purchase-request-approve',
      component: () => import('@/views/task/purchase-request-approve/index'),
      name: 'PurchaseRequestApprove',
      meta: { title: '采购申请审核' }
    },
    {
      path: '/task/purchase-contract-approve',
      component: () => import('@/views/task/purchase-contract-approve/index'),
      name: 'PurchaseContractApprove',
      meta: { title: '采购合同审核' }
    },
    {
      path: '/task/imageUpload',
      component: () => import('@/views/upload/imageUpload'),
      name: 'imageUpload',
      meta: { title: '图片上传' }
    },
    {
      path: '/task/fileUpload',
      component: () => import('@/views/upload/fileUpload'),
      name: 'fileUpload',
      meta: { title: '文件上传' }
    },
    {
      path: '/task/echarts',
      component: () => import('@/views/echarts'),
      name: 'echarts',
      meta: { title: '可视化' }
    },
  ]
}
export default taskRouter
